package com.example.demo.controller.vo;

import com.example.demo.entity.Doctor;

/**
 * @Author: WinstonDeng
 * @Description:
 * @Date: Created in 15:21 2020/4/11
 * @Modified by:
 */
public class DoctorInfoVO {
    private Long id;
    private String openId;
    private String username;
    private String realName;
    private String pictureUrl;
    private String honor;
    private String description;
    private String departmentName;
    private String gender;

    public DoctorInfoVO(Doctor doctor){
        id = doctor.getId();
        username = doctor.getUsername();
        realName = doctor.getRealName();
        openId = doctor.getOpenId();
        pictureUrl = doctor.getPictureUrl();
        honor = doctor.getHonor();
        description = doctor.getDescription();
        departmentName = doctor.getDepartment().getName();
        gender = doctor.getGender();
    }
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    public String getHonor() {
        return honor;
    }

    public void setHonor(String honor) {
        this.honor = honor;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Override
    public String toString() {
        return "DoctorInfoVO{" +
                "id=" + id +
                ", openId='" + openId + '\'' +
                ", username='" + username + '\'' +
                ", realName='" + realName + '\'' +
                ", pictureUrl='" + pictureUrl + '\'' +
                ", honor='" + honor + '\'' +
                ", description='" + description + '\'' +
                ", departmentName='" + departmentName + '\'' +
                ", gender='" + gender + '\'' +
                '}';
    }
}
